package cn.ds.assets.module.assets.controller.admin.metadataModelBusiness.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.ds.assets.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.time.LocalDate;

import static cn.ds.assets.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 元数据管理-元模型-业务属性分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BaseMetadataModelBusinessPageReqVO extends PageParam {

    @Schema(description = "主键ID")
    private Long[] ids;

    @Schema(description = "序号")
    private Integer sort;

    @Schema(description = "属性名称", example = "赵六")
    private String attrName;

    @Schema(description = "属性描述")
    private String attrDesc;

    @Schema(description = "值域,module_type字段值为2,3时必填")
    private String range;

    @Schema(description = "是否必填,0:否,1:是")
    private Boolean required;

    @Schema(description = "是否只读,0:否,1:是")
    private Boolean readOnly;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "元模型主键ID,关联assets_metadata_model_base表id字段", example = "28269")
    private Long modelId;

    @Schema(description = "组件类型,1.文本框,2.单选下拉框,3.复选下拉框,4.日期选择器,5.文件上传,6.复选搜索框,7.表格,8.模型", example = "1")
    private Byte moduleType;

}
